Spectroscopic detector and method for determining the presence of blood and biological marker substances in liquids

ABSTRACT

The invention relates to a detector for measuring scattered light in liquids having a housing, a transparent, flexible tube for transporting liquid through the housing, a light emitter, and a light detector. Two parallel surfaces are formed in the housing, between which the tube is arranged such that two opposing tube walls are formed in a planar parallel manner. The light emitter is arranged in such a way that the optical axis thereof is perpendicular to the parallel surfaces of the first tube wall, and the light detector is adjacent to the light emitter, the optical axes of the light emitter and light detector forming an angle smaller than 90°. The invention also relates to a method for detecting the presence of blood and for the quantitative determination of biological marker substances, especially bilirubin, in solution, and to a device for treating blood containing the detector.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.12/306,088, filed on Dec. 22, 2008, which is a 371 national phaseapplication of PCT/EP2007/000433 filed Jun. 26, 2007, claiming priorityto German Patent Application No. 10 2006 029 899.3 filed Jun. 29, 2006.

FIELD OF INVENTION

The invention concerns a detector and the detection of blood andbiological marker substances in optically dense and clear liquids or insecondary liquids used in blood purification machines.

BACKGROUND OF THE INVENTION

To ensure patient safety, a blood detector must be used when using amembrane filter for blood purification to prevent critical patientconditions caused by risks such as possible blood loss, membrane ruptureof the filter, mistaking of connections or hemolysis.

Spectroscopic analyses for determining blood and biological markersubstances in solution are known from the prior art. EP 0 575 712 A2describes the spectroscopic analysis of blood on a squeezed tube indialysis and measurement in transmission. EP 1 083 948 B1 describes thespectral measurement of waste products in dialysis liquid, whereby themeasurement is performed directly in the dialysis liquid dischargedduring dialysis treatment. The measurement is performed by spectralphotometry and the measured value obtained is multiplied by the flowvolume of dialysis liquid. The measurement is performed in transmission.

U.S. Pat. No. 5,644,402 describes an optical detector for bloodrecognition in blood treatment appliances, in which the transmissionbehavior of the arrangement to be measured is measured by multiplecrossing of the medium measured. U.S. Pat. No. 6,718,190 B1 discloses atransmission analysis with inclined optical axes. WO 2004/057313describes optical measurements in a squeezed tube, whereby differentlight sources and sensors and non-inclined optical axes are used.

However, optical transmission measurements are not possible or areimprecise, especially in optically dense solutions. Here, the questionarises how certain components in the liquid are to be determined withsufficient accuracy. It may also be necessary to recognize blood insecondary liquids so as to determine a blood leak in the bloodpurification unit (e.g. dialysis machine).

SUMMARY OF THE INVENTION

One aspect of the present invention is to provide a detector fordetection of blood in a secondary circuit flowing over the filter andcontaining an optically dense suspended solution. It should also bepossible, where appropriate, to detect blood, especially in an opticallyclear solution.

In addition, another aspect of the present invention is to controltherapeutic progress and determine the time for ending the therapy orthe need for adsorber replacement by quantitative determination ofcertain marker substances (e.g. bilirubin in liver support therapy). Thedetector should also permit the principal distinction between anoptically clear and an optically dense solution.

The present invention provides a detector for measuring stray light inliquids, comprising a casing, a light-transmissive, flexible tube fortransporting liquids conducted through the casing, a light emitter, anda light detector. Two essentially flat surfaces are formed by thecasing, between which surfaces the tube is arranged such that twojuxtaposed tube walls are formed to be essentially flat. The lightemitter with its optical axis is arranged to be perpendicular to theflat surfaces beside the first tube wall and adjacent to said first tubewall, whereby the optical axes of the light emitter and light detectorform an angle that is smaller than 90°.

According to a preferred embodiment, the flat surfaces of the tube wallsare arranged parallel to each other. It may be sufficient for theflexible tube for transporting liquids to have only the tube walladjacent to the flat surface be flexible, while the other defining wallsof the tube may be rigid. In general, however, the entire tube will beflexible.

The light emitter radiates light in a broad wavelength range through ashutter onto the tube at a perpendicular angle. A white LED ispreferably used as the light source with wavelengths in the range fromapproximately 400 to 700 mm. The tube is preferably a standard tube asused in dialysis. A disposable tube is preferred.

Since the light emitter with its optical axis is arranged to beperpendicular to the flat surfaces beside the first tube wall, optimalpassage of the light into the interior of the tube is ensured.

The detector according to the present invention can also be used inoptically dense liquids. According to the present invention, anoptically dense liquid is defined as a light-impermeable liquid. Anoptically clear liquid is defined as a liquid with high transmission ofvisible light. Light-transmissive is defined where at least a part ofthe radiated light can permeate the entire tube diameter and the liquidcontained in the tube, when the light is radiated from one side of thetube. In light-impermeable liquids, virtually no light passes throughthe tube diameter and the liquid contained in the tube, i.e.transmission does not occur. According to the present invention, theterm “liquid” refers in particular to solutions and suspensions.

In a first embodiment, the light passes through the transparent tubewall into the optically dense liquid in the tube interior and isabsorbed or partly diffused, depending on the given wavelength. Anoptically dense liquid is, for example, an optically dense suspension oroptically dense solution. The optical density of the fluid preventstransmission through the interior of the liquid, so that no reflectionon the rear tube wall facing away from the light emitter or on the rearcasing wall, on which the rear tube wall abuts, takes place.

In a second embodiment, the light passes through the first transparenttube wall into the optically clear liquid in the tube interior. In thiscase, however, at least a part of the light permeates the opticallyclear liquid present in the entire tube diameter in the tube interiorand is reflected in a preferred embodiment on the rear tube wall and/orrear casing wall facing away from the light emitter. The rear casingwall is the wall in the interior of the casing on which the rear tubewall abuts. In the case of an optically clear solution, the reflectedlight volume is lower than the radiated light volume, since the lightpasses through the liquid twice.

The light detector is preferably located with its optical axis at anangle of 45° to the optical axis of the light emitter. The lightdetector absorbs the reflected or diffused light and analyzes thesignal. The light detector preferably comprises a light conductor thatabsorbs the light and a spectrometer connected with the light conductor.The light is, for example, conducted over a light-wave conductor into amicro-spectrometer, in which the wavelength spectrum is absorbed.

In an especially preferred embodiment, the intersection of the opticalaxes of the light emitter and light detector is located precisely on themedia boundary between the tube wall facing the light emitter/lightdetector and the liquid in the tube. Depending on the density of thesolution, however, the intersection may also be located a few tenths ofa millimeter behind the media boundary in the liquid in the tubeinterior. In a further advantageous embodiment, the intersection of theoptical axes of the light emitter and light detector is thereforelocated in an area extending from the media boundary between the tubewall facing the light emitter/light detector and the liquid transportedin the tube up to 0.5 mm into the tube interior.

As described above, after passing through the entire tube diameter,light is reflected on the rear tube wall facing away from the lightemitter and/or the rear casing wall. To improve the light reflection inthis case, a reflecting surface is provided preferably on the side ofthe tube facing away from the light emitter and light detector. Thereflecting surface can be either a reflecting tube surface or areflecting casing surface or both. To achieve a reflection, aluminum,for example, is a suitable casing material. The casing is otherwisepreferably made of plastic. For simple insertion of the tube in thecasing, it is advantageous to provide a lid on the rear side facing awayfrom the light emitter and light detector.

Preferably at least one of the two casing walls (the casing wall facingthe light emitter and the casing wall facing away from the lightemitter) is arranged to be flat, so that the tube wall is in flatformation when inserted in the casing. According to a preferredembodiment, which is used especially in double transmission, both casingwalls are arranged to be flat and parallel with each other, so that thelayer thickness within the inserted tube to be radiated is substantiallyparallel and consequently constant.

A light-transmissive glass pane may be disposed between the tube and thelight emitter and the light detector to prevent contamination of thelight emitter and/or light detector openings in the casing (e.g. in theevent of a tube leakage). This glass pane can preferably be arrangedparallel to the opposite lid surface.

The light is preferably radiated into the solution through a 2-4 mm wideopening (shutter), whereby the system is made relatively insensitive todivergences of the bore holes in the casing construction or of tubethickness within the fault tolerance range.

If hemoglobin reaches the detector, light absorption increases and thereflected light volume simultaneously diminishes correspondingly atspecific wavelengths depending on the substance. The signal changecompared to the previously determined reference signal for thesewavelengths, for which the light reflection of the pure suspension orsolution is measured, results in a signal deflection for blood that thenactuates a blood alarm, under application of an algorithm defined below,when a defined alarm criterion is fulfilled. The same measuring systemcan also be used quantitatively for other substances whose spectralmaxima are not overlaid by interfering substances.

For signal analysis, the light detector advantageously comprises ananalysis unit. The analysis unit calculates a wavelength-dependentsignal change ΔS from a wavelength-dependent measuring signal and alikewise wavelength-dependent reference signal in accordance with thefollowing formula (1):

$\begin{matrix}{{{\Delta \; {S(\lambda)}} = {{\Delta \; S} = {\log \left( \frac{{I(\lambda)}_{refeencevalue}}{{I(\lambda)}_{measuredvalue}} \right)}}}{{\lambda = {wavelength}},{I = {intensity}}}} & (1)\end{matrix}$

The analysis unit then generates a convolution integral, beginning witha wavelength λ₀ of the signal change function ΔS(λ) over a definedwavelength range, e.g. from λ₀ to λ₁. The convolution function accordingto (2) is e.g.:

$\begin{matrix}{{\psi (x)} = {\left( {\frac{a}{\sqrt{b}}(\pi)^{c}} \right) \cdot \left( {d - \left( \frac{x}{j} \right)^{f}} \right) \cdot ^{\frac{- {(\frac{x}{j})}^{g}}{h}}}} & (2)\end{matrix}$

where x=λ−λ₀ and a, b, c, d, f, g, h and j are selected constants.

For every wavelength, the signal change function ΔS is multiplied withthe convolution function ψ(x). Then the convolution integral for thewavelength λ₀ is calculated from the sum of all products. If no blood isin the medium, the convolution integral should be zero where possible,regardless of all interfering influences. In the case of blood, however,it becomes positive. The value thus obtained is compared with a numberof defined alarm criteria. If one of the criteria is fulfilled, blood isrecognized.

To ensure that the spectra divergence at differential oxygen saturationshas no effect on the convolution integral, λ₀ (preferably λ₀=558 nm) isso selected that the signal strengths of blood saturated with oxygen andblood unsaturated with oxygen are equal for this wavelength.

Two different analysis methods may be used for evaluation. Fordetermination of substances such as e.g. bilirubin, the signal ΔS(λ) isused for a particular wavelength. On the other hand, to permitrecognition of blood despite differential blood saturation levels, aconvolution integral is again used. The signal change function ΔS(λ) isthereby multiplied for every wavelength by a pre-selected convolutionfunction ψ(x) and the product added up.

The apparatus according to the invention can also be used to examine thefunctions of the detector arrangement, whereby the presence of blood inthe measured object is simulated.

For this purpose, both a white radiating and green radiating LED areused as light emitters. Two measurements are performed in sequence,whereby preferably both LEDs radiate in the first measuring step, andonly the white LED radiates in the second measuring step. By switchingoff the green LED, blood in the tube is simulated because the hemoglobinpresent in the tube is absorbed inter alia in the green wavelengthrange, so that less light reaches the detector in this wavelength range.

To test functionality, the signal change is determined according to achanged version of equation (1), i.e. according to equation (3):

$\begin{matrix}{{\Delta \; {S(\lambda)}} = {\log \left( \frac{{I(\lambda)}_{{{{LED}\mspace{14mu} {white}}\&}{green}}}{{I(\lambda)}_{{LED}\mspace{11mu} {white}}} \right)}} & (3)\end{matrix}$

For the signal value I(λ)_(LED white), a saved reference value canadvantageously also be used.

The same function is then used accordingly for the spectra analysis forblood, and the signal value so obtained is compared with a controlvalue. If the detector is functioning properly, the signal value shouldthereby always be higher than the control value. If this is not thecase, this indicates a malfunction of the detector. This simulation can,incidentally, be performed both in an optically clear and an opticallydense solution.

According to a further embodiment, air recognition in an optically densesolution is also possible. If air enters the secondary circuit tube,this lowers the intensity of the spectrum measured. This is because airis very similar to an optically transparent solution, whereby only apart of the reflected light reaches the detector due to the arrangementof the optical system, as in the case of the optically transparentsolution.

In a further aspect, the present invention concerns a process for thedetection of blood and quantitative determination of biological markersubstances, in particular bilirubin, in solution, whereby the processsteps previously described for the analysis unit are performed. Thedetection of bilirubin with the detector according to the presentinvention is particularly useful in liver support therapy for control oftherapeutic progress and determination of the time for ending thetreatment or replacing the adsorber.

In a further aspect, the present invention accordingly also concerns theuse of the detector according to the invention for the detection ofblood, in particular hemoglobin, and of biological marker substances, inparticular bilirubin.

Finally, the present invention also concerns an apparatus for bloodtreatment with a blood treatment unit, a blood circuit connected withthe blood treatment unit and a secondary liquid circuit likewiseconnected with the blood treatment unit. The secondary liquid circuit ispreferably a dialysis liquid circuit. The secondary liquid circuitcomprises a tube system and a detector as described above, through whichthe tube of the secondary liquid circuit is laid.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a first embodiment of the detector according to the presentinvention in cross-section, whereby a measurement in optically densesolution is shown.

FIG. 2 shows the embodiment of the detector according to FIG. 1performing a measurement in optically clear solution.

FIG. 3 a shows a second embodiment of a detector according to thepresent invention in cross-section performing a measurement in opticallydense solution with a light emitter.

FIG. 3 b shows the embodiment of FIG. 3 a with two light emitters.

FIG. 4 shows a comparison of the measuring signal of an optically clearand an optically dense solution.

FIG. 5 shows the spectra of hemoglobin for different oxygen saturations.

FIG. 6 is a graphic representation of the influence of the hemoglobinconcentration to be measured on the measuring signal.

FIG. 7 shows a spectrum of the bilirubin.

FIG. 8 shows the influence of the bilirubin concentration to be measuredon the measuring signal.

FIG. 9 shows the change of the measuring signal in optically densesolution (“reference signal”) by induction of hemoglobin (“measuringsignal with hemoglobin”).

FIG. 10 shows an exemplary flow plan of a blood treatment apparatus withan integrated detector according to the present invention.

The present invention is described in detail below by reference topreferred embodiments. These specific embodiments only serve forclarification and are not intended to limit the invention described ingeneral above.

DETAILED DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a first embodiment of the detector 8 according to theinvention in a view diagonal to the flow direction of the liquid 10. Acasing 12 is formed by a main casing part 14 and a casing lid 16, whichserves for simple insertion of a tube 18 into the casing 12 and as ameasuring background. When tube 18 is inserted, the casing lid 16 isfastened with tightly sealing effect on the main casing part 14.

The main casing part 14 further comprises a channel 20 for guiding tube18 through casing 12, a first recess 22 for mounting a light emitter 24and a second recess 26 for mounting a light detector 28. Both recesses22 and 26 open from the outside of the main casing part 14 and extendover a narrowed first shutter 30 for the ray beam of light emitter 24and a second narrowed shutter 36 for the ray beam of light detector 28and then through the main casing part 14 to end in the channel 20.

The light emitter 24 is advantageously a light source emitting whitelight, preferably an LED emitting white light.

According to a further embodiment, the light emitter 24 may consist oftwo light sources where necessary, which emit different light spectra,e.g. a light source emitting white light and a light source emittinggreen light, in particular in the form of an LED arrangement.

Tube 18 is guided through casing 12, whereby liquid 10 can be conductedthrough the tube 18. The tube itself is permeable by the light emittedby light emitter 24.

The flat inner surface 34 of the casing lid 16 is advantageouslyarranged in parallel with the opposite flat channel surface 32 of themain casing part 14, whereby both surfaces 32, 34 are defining surfacesfor the inserted tube 18. The distance between the two surfaces 32 and34 is thereby smaller than the outer diameter of the tube 18. Thisarrangement deforms the flexible tube 18 after insertion in the casing12 so that the initially round form is transformed into a substantiallyoval form with two almost flat and preferably planar parallel tube walls38, 40.

The light detector 28 is adjacent to the first channel surface 32,whereby a light channel extending from channel 20 through the maincasing part 14 is formed here by a second shutter 36 together with thesecond recess 26. This light detector 28 is positioned adjacent to thelight emitter 24, whereby the optical axes extending through the twoshutters 30 and 36 and through the first and second recesses 22 and 26advantageously form an angle of approximately 45°. In FIG. 1, theoptical axes that also represent the light beams, are shown as arrowsextending from light emitter 26 and light detector 28, which intersectat the media boundary between the first tube wall 38 and the liquid 10or a few tenths of a millimeter behind the media boundary within theliquid 10.

In accordance with its first embodiment, the light detector 28 itself isformed as a light conductor, which may be connected with a spectrometerfor further processing of the light signal, or formed as a light diodeor the like according to a second embodiment, which can directly convertthe irradiated light volume into an electrical measuring signal.

FIG. 1 presents the measurement in optically dense liquid, whereby it issufficient if only the first casing wall 32 is flat, so that, wheresuitable, a flat arrangement of the rear casing wall 34 is notnecessary. The liquid 10 here is, for example, an optically densesolution or suspension. The light penetrates through the first tube wall38 into the solution 10, where it is partly absorbed and partly diffuseddepending on the wavelength. Due to the optical density in the liquid10, any transmission through the liquid 10 is prevented, so thatreflection on the second tube wall 40 or the inner surface 34 of the lid16, on which the second tube wall 40 abuts, does not occur. In schematicpresentation, this drawing merely shows the partial diffusion on theliquid surface in the direction of the light detector 28 in the form ofan arrow directed towards light detector 28.

FIG. 2 shows the exemplary embodiment of the detector according to FIG.1, with an optically clear solution as liquid 10. The light 42 emittedby light emitter 24 penetrates the first tube wall 38 and the entireliquid 10 present in the tube and is then reflected on the second reartube wall 40 and/or the inner surface 34 of the lid 16. A part 44 of thereflecting light again penetrates the entire liquid and is then absorbedby the light detector or light conductor 28. According to thisembodiment, it is advantageous if the rear casing wall 34 is parallel tothe front first casing wall 32.

FIG. 3 a shows a second embodiment of the detector 8 in cross-section ina measurement in optically dense solution. In contrast to the embodimentshown in FIGS. 1 and 2, a glass pane 46 which is permeable to theirradiated light is arranged between the first tube wall 38 and thesurface 32. This prevents possible contaminations of the light emitteror light detector openings in the casing 12. The rear casing wall 34 isadvantageously arranged parallel to the glass pane 46.

FIG. 3 b shows a further embodiment with two light emitters of differentirradiation wavelengths (e.g. green). In addition to the first lightemitter 24, there is a second light emitter 48, which is mounted in athird recess 50 in the main casing part 14. The recess 50 opens from theoutside of the main casing part 14 and extends over a further narrowedthird shutter 52 for the ray beam of the light emitter 48 through themain casing part 14 and also ends in channel 20. The light beam and theoptical axis of the second light emitter 48, as indicated by the arrowsin FIG. 3 a, advantageously form an angle of 45° with the axis of thefirst light emitter 24, whereby other angles are also possible andmerely depend on the volume geometry of the light emitters or detectorsused. The two axes intersect at the media boundary between the firsttube wall 38 and the liquid 10 or a few tenths of a millimeter behindthe media boundary within the liquid 10.

FIG. 4 shows a comparison of the measuring signal in optically clear andoptically dense solution. The figure shows how an optically clearsolution can be distinguished from an optically dense solution bychanging the measuring signals. If an optically dense solution ispresent in the tube 18, a high proportion of the light irradiated intothe medium arrives in light detector 28 and the spectrometer bydiffusion. In an optically clear solution, the light is reflected on therear tube wall 40 or on the inner surface 34 of the lid 16. However,since the optical axes do not meet here, only a part of the irradiatedlight reaches light detector 28. The total light volume is thereforesignificantly lower in a clear medium (see FIG. 4). This permits simpleand safe differentiation between the different liquid states.

FIG. 5 shows the spectra of hemoglobin for different oxygen saturations.The colorant of the erythrocytes, the hemoglobin, has slightly differentblood spectra at different oxygen saturations. This divergence of thespectra can be compensated during evaluation using the algorithm, asshown below, to ensure precise quantitative measurement.

FIG. 6 shows the influence of the hemoglobin concentration to bemeasured on the measuring signal. By addition of hemoglobin to anoptically dense solution, the re-diffused light is reduced in thewavelength range specific to the substance, as shown in FIG. 6. Thechange of the spectrum in optically clear solution is analogous. Onlythe total signal before the addition of hemoglobin differs markedly, asshown in FIG. 4. Especially in the 500-600 nm range, the spectra changeis very specific due to absorption behavior. This range is applied, forexample, in the evaluation algorithm for blood recognition. Overlay inthis wavelength range due to marker substances must be taken intoaccount in developing the evaluation algorithm. The hemoglobin peakbetween 400 and 450 nm can not be used for the evaluation because thispeak is strongly overlaid by the bilirubin, which may be included in theliquid 10 as a marker substance in this example.

The quantitative determination of bilirubin is performed by evaluationof the peak at approximately 450 nm. FIG. 7 shows a spectrum of thebilirubin. FIG. 8 shows the change in the measuring signal or the rawsignal due to differing quantities of bilirubin added.

Distorting influences during analysis as regards hemoglobin are caused,as mentioned above, by substances that have entered the liquid due tothe blood purification, such as e.g. bilirubin (see FIGS. 7-8) and bythe spectra divergence of the blood at different oxygen saturationlevels (see FIG. 5). The evaluation is therefore designed to minimizethese distorting influences. Since the light source in the detector isalso used for measuring the reference signal, the reference signal isreceived at a moment in which the tube has been inserted and dummysolution is in the tube. In the case of optically clear solution, thisis water or a common salt solution. In the case of an optically densesolution, additional particles are included. FIG. 9 shows a spectrum ofthe reference signal and a measuring spectrum with hemoglobin inoptically dense solution.

To present signal changes compared to the reference signal, the data ofthe reference spectrum and the measuring spectrum are analyzed accordingto formula (1).

To provide reliable blood detection, a convolution function is used thatmay e.g. have the form of equation (2).

To minimize the distorting influence of bilirubin, is has provensufficient to use the convolution function in a wavelength range fromapproximately 550 to 700 nm. To form the convolution integral, thesignal change function ΔS(λ) is multiplied with the convolution functionψ(x) for every wavelength. The sum of the products then represents theconvolution integral for the wavelength λ₀. If there is no blood in themedium, the convolution should be zero where possible, regardless of alldistorting influences. In the presence of blood, on the other hand, itis positive.

To achieve this, λ₀ must be selected accordingly for a particularconvolution function, i.e. it should be the same for saturated andunsaturated blood for this wavelength.

FIG. 10 shows a flow plan of a blood treatment apparatus having anintegrated detector 76, which corresponds to the detector 8 according tothe embodiments of FIGS. 1 to 3. The figure shows a blood circuit 60from and to a patient and a secondary circuit 66 for blood purification.Both circuits 60 and 66 are connected to a blood treatment unit 62,whereby these circuits are separated within the blood treatment unit 62by a membrane 64.

In the secondary circuit 66, in which a purification liquid, i.e. adialysis liquid, is usually pump circulated, the conventional clamps 68,pressure sensors 70 and 72 are located upstream or downstream of theblood treatment unit 62, and a tube pump 74 is interposed upstream ofthe blood treatment unit 62.

The detector 76 is interposed in the secondary circuit 66 downstreamfrom the blood treatment unit 62, whereby the tube of the secondarycircuit 66 forms the tube 18 of the detector 8 according to FIGS. 1-3.As evident from FIG. 10, a spectrometer 78 or another detector, in whichthe conducted light signals are spectroscopically dispersed, isconnected to the detector unit 76 by a light conductor 77.

An analysis unit 80 connected to the spectrometer 78 then analyzes thesignal provided by the spectrometer 78, compares the current signal witha reference signal if appropriate, and generates the final signal bymeans of a computing and discrimination unit (not shown). This finalsignal can then be conveyed to the main control unit of the bloodtreatment apparatus (not shown) to be further processed there in analarm unit.

1.-16. (canceled)
 17. A device for measuring stray light in liquidscomprising: a casing having at least one flat surface; alight-transmissive flexible tube for transporting a liquid, saidflexible tube having a tube wall and being fitted within the casing suchthat at least one portion of the tube wall is pressed against the atleast one flat surface and is thereby flattened; a light emitter havinga first optical axis, wherein the first optical axis is substantiallyperpendicular to the at least one flattened portion of the tube wall;and a light detector having a second optical axis, wherein the firstoptical axis and the second optical axis form an angle of less thanabout 90°.
 18. The device of claim 17, wherein the at least oneflattened portion of the tube wall comprises a first wall adjacent tothe light emitter and the light detector, and a second wall spaced awayfrom the light emitter and the light detector, the first wall and thesecond wall being parallel to each other.
 19. The device of claim 17,wherein the first optical axis and the second optical axis form an angleof about 35 to about 55°
 20. The device of claim 17, wherein the firstoptical axis and the second optical axis form an angle of about 45°. 21.The device of claim 17, wherein the intersection of the first opticalaxis and the second optical axis is located in an area extending from amedia boundary between the at least one flattened portion of the tubewall and the liquid and up to about 0.5 mm into the liquid.
 22. Thedevice of claim 17, wherein the intersection of the first optical axisand the second optical axis is located on a media boundary between theat least one flattened portion of the tube wall and the liquid.
 23. Thedevice of claim 18, wherein the second wall further comprises areflective surface facing the light emitter and the light detector. 24.The device of claim 18, wherein the at least one flat surface of thecasing is adjacent to the second wall and further comprises a reflectivesurface facing the light emitter and the light detector.
 25. The deviceof claim 17, further comprising a light-transmissive glass pane disposedbetween the tube and the light emitter and the light detector.
 26. Thedevice of claim 17, wherein the light emitter emits light with awavelength of about 400 to 700 nm.
 27. The device of claim 17, whereinthe light detector comprises a light conductor or a light diode.
 28. Thedevice of claim 17, wherein the light detector comprises a spectrometerconnected with a light conductor.
 29. The device of claim 17, furthercomprising an analysis unit connected to the light detector, theanalysis unit calculating a wavelength-dependent signal change functionfrom a wavelength-dependent measuring signal and a wavelength-dependentreference signal, forming a convolution integral from the signal changefunction for a defined wavelength range, and determining the presence ofblood in the liquid on the basis of the value of the convolutionintegral.
 30. An apparatus for blood treatment comprising a bloodtreatment unit, a blood circuit connected with the blood treatment unit,and a dialysis liquid circuit connected with the blood treatment unit,whereby the dialysis liquid circuit comprises a tube system and thedevice of claim
 17. 31. A method for the detection of a substance insolution comprising: receiving a liquid through a light transmissivetube; emitting light through the tube along a first optical axis;receiving light through the tube along a second optical axis; measuringthe received light as a wavelength-dependent measuring signal;calculating a wavelength-dependent signal change function from awavelength-dependent measuring signal and a wavelength-dependentreference signal; forming a convolution integral from the signal changefunction and a convolution function for a defined wavelength range; anddetermining the presence of the substance on the basis of the value ofthe convolution integral, wherein the substance is chosen from the groupconsisting of blood, hemoglobin, marker substances, and air.
 32. Themethod of claim 31, wherein the substance is blood.
 33. The method ofclaim 31, wherein the substance is hemoglobin.
 34. The method of claim31, wherein the substance is marker substances.
 35. The method of claim31, wherein the substance is air and the solution is an optically densesolution.
 36. The method of claim 31, further comprising measuring thereceived light as a wavelength-dependent measuring signal with ameasuring device comprising: a casing having at least one flat surface;a light-transmissive flexible tube for transporting a liquid, saidflexible tube having a tube wall and being fitted within the casing suchthat at least one portion of the tube wall is pressed against the atleast one flat surface and is thereby flattened; a light emitter havinga first optical axis, wherein the first optical axis is substantiallyperpendicular to the at least one flattened portion of the tube wall;and a light detector having a second optical axis, wherein the firstoptical axis and the second optical axis form an angle of less thanabout 90°.
 37. The method of claim 31, wherein the steps of calculatinga wavelength-dependent signal change function, forming a convolutionintegral, and determining the presence of the substance are performed byan analysis unit.